import React, {Fragment} from 'react';
import VerticalLine from "@/pages/WorkFlowDesigner/Line/VerticalLine";
import HorizontalLine from "@/pages/WorkFlowDesigner/Line/HorizontalLine";

interface YLineProps {
    uw: number // 横线高度
    ih: number // 下竖线高度
}

export default React.memo((props: YLineProps) => {
    const {uw, ih} = props;

    return (
        <Fragment>
            <div className="main-flex-container">
                {/*U型实线*/}
                <div className="item-flex-container">
                    <HorizontalLine length={uw} border={2}/>
                </div>
                {/*竖线*/}
                <div className="item-flex-container">
                    <VerticalLine border={2} height={ih}/>
                </div>
            </div>

        </Fragment>
    )
})
